package org.changchen.fgt.controller;

import java.util.List;

import org.changchen.fgt.dto.AcgWeekDto;
import org.changchen.fgt.service.AcgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**   
* @ClassName:  AcgController   
* @Description:动漫   
* @author:     ChangChen 
* @date:       2024-02-02 09:22
* @Copyright:  2024 ChangChen. All rights reserved. 
*/
@Controller
@RequestMapping(value = "/acg")
public class AcgController {
	
	@Autowired
	private AcgService acgService;
	
	
	@GetMapping(value = "")
	public ModelAndView acg() {
		ModelAndView view = new ModelAndView("acg");
		return view;
	}
	
	
	@GetMapping(value = "/v2")
	public ModelAndView acgV2() {
		ModelAndView view = new ModelAndView("acg_v2");
		return view;
	}
	
	
	@GetMapping(value = "/list")
	@ResponseBody
	public List<AcgWeekDto> acgList(){
		return acgService.acgList();
	}
	

}
